home *** CD-ROM | disk | FTP | other *** search
- Path: macqbl.com.au!usenet
- From: drubie@macquarie.com.au (David Rubie)
- Newsgroups: comp.lang.c++
- Subject: Re: First Big One
- Date: 14 Mar 1996 01:13:38 GMT
- Organization: Macquarie Bank Ltd.
- Message-ID: <4i7rs2$mp6@mblisd.macqbl.com.au>
- References: <4i4oa4$ga9@nova.umuc.edu>
- Reply-To: drubie@macquarie.com.au
- NNTP-Posting-Host: isd47.macqbl.com.au
-
- In article <4i4oa4$ga9@nova.umuc.edu>, srussell@nova.umuc.edu (Steve Russell) writes:
- [munch]
- >Im finnishing up the second of a 2 semester intro to c++ and
- >programming. I have a rudimentry knowledge of classes. Im confident
- >I can write the number crunching, but as a lowly student I don't
- >if it is practical for me to try to solve the following problems.
- >Are the following things in reach, Im willing to do some reading
- >( so please direct me:))
- >
- >
- [good questions deleted]
- >Anything else a starting student might not be aware of trying to
- >write a serious program.
- >
-
- Steve,
-
- Even if the class structure of your new program is clunky, it is
- hard to run or it's delivered on 50 floppy disks, the worst that
- can happen is that it produces the wrong numbers.
-
- Anything to do with money is always problematic, especially
- if you have to do percentage work with taxes. etc.
-
- The biggest beginner mistake I see is a miscomprehension about
- how accurate the floating point number system is - it can result
- in all sorts of missing decimal places etc. if you aren't careful.
- You have to remember that some numbers aren't trivially
- represented by the binary system that a computer uses (especially
- fractions).
-
- Read up on floats/doubles etc. and think about the number rounding
- problems you're going to have displaying data to the user. While
- you won't get beaten up too much at University for an inaccurate
- assignment, if you're dealing with real money then the accountant
- or owner of the shop is going to get real mad, real fast if you're
- calculations prove to be wrong.
-
- Good luck.
-
- dave.
-
-
-
- --
- -------------------------------------------------------
- David Rubie
- Macquarie Bank Ltd.
- drubie@macqbl.com.au
-
-
-